import requests from '@/utils/requests'

// 获取tabbar数据
export const tabbarInfo = () => requests({ url: '/public/tabbar', method: 'GET' })

// 主页列表更多
export const listInfo = () => requests({ url: '/public/homeList', method: 'GET' })

// 获取评论
export const dynamicInfo = (data) => requests({ url: '/dynamic?_sort=id&_order=desc', method: 'GET', params: data })
// 修改数据
export const modifyDynamic = (id, data) => requests({ url: `/dynamic/${id}`, method: 'PATCH', data })

export const publishInfo = (data) => requests({ url: '/dynamic', method: 'POST', data })

// 我的列表
export const myListInfo = () => requests({ url: '/public/myList', method: 'GET' })

// 新闻
export const newsInfo = () => requests({ url: '/public/news', method: 'GET' })
